package com.itheima.service;
import com.itheima.pojo.Brand;
import com.itheima.pojo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandService {
    /**
     * 查询所有
     *
     * @return list
     */
    List<Brand> selectAll();

    /**
     * 添加数据
     *
     */
    void add(Brand brand);
    Brand selectById(int id);
    void update(Brand brand);
    void deleteById(int id);
    void deleteByIds(int[] ids);
    PageBean<Brand> selectByPage(int currentPage,int pageSize);
    PageBean<Brand> selectByPageAndCondition(int currentPage,int pageSize,Brand brand);
}



